package com.bookstore.dao;

import com.bookstore.entity.User;

import java.util.List;

public interface UserDao {
    int insertUser(User user);

    int updateUser(User user);

    int deleteUser(Long userId);

    List<User> queryAllUser();

    User queryUserId(Long userId);

    User queryNameAndPassword(String username,String password);
}
